//
//  Utility.h
//  ZTML
//
//  Created by 周涛 on 14/11/6.
//  Copyright (c) 2014年 long. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"

@interface Utility : NSObject

+ (void)showAlertMessage:(NSString *)atMessage;
+ (void)showAlertTitle:(NSString *)atTitle Message:(NSString *)atMessage;
+ (BOOL)networkDetection;
+ (UIWindow *)mainWindow;
+ (void)showHint:(NSString *)hint;
+ (void)showHint:(NSString *)hint yOffset:(float)yOffset;
+ (void)showHint:(NSString *)hint yOffset:(float)yOffset HUDMode:(MBProgressHUDMode)HUDMode;
+ (BOOL)isMobileNumber:(NSString *)mobileNum;
+ (BOOL)isBlankString:(NSString *)string;
+ (void)startTime:(UIButton *)sender;
+ (NSString *)currentTime:(NSDate *)date;
+ (CGSize)getTextString:(NSString *)text textFont:(UIFont *)font frameWidth:(float)width attributedString:(NSMutableAttributedString *)attributedString;
@end
